package com.tnstart.android.control.light.fragments;

import android.view.View;
import android.widget.ListView;
import android.widget.Toast;

import com.tnstart.android.control.light.adapter.AreaAdapter;
import com.tnstart.android.control.light.bean.SampleItem;

public class LightListFragment extends BaseListFragment {

    @Override
    public AreaAdapter adapterBuilder() {
        return new AreaAdapter(getActivity());
    }

    public void processSelection(ListView lv, View v, int position, long id) {
        Toast.makeText(this.getActivity(), "默认Toast样式",
                Toast.LENGTH_SHORT).show();

    }

    @Override
    public void doReloadData() {
        for (int i = 0; i < 10; i++) {
            getAdapter().add(new SampleItem("Light List", android.R.drawable.ic_menu_search, 1));
        }

    }


}
